package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UserLoginVo implements Serializable {

    @NotBlank(message = "用户名不能为空")
    @Size(min = 6,max = 12,message = "用户名必须是6-12位")
    private String userName;


    @NotBlank(message = "密码不能为空")
    @Size(min = 5,max = 9,message = "密码必须是5-9位")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-zA-Z])[a-zA-Z0-9]{6,}$",message = "密码格式不正确")
    private String password;


}
